import request from "@/utils/request";
// 账单列表
export function getExpensesAPI(obj) {
    return request({
        url: '/park/propertyfee',
        method: 'GET',
        params: obj
    })
}

//删除账单
export function delExpensesAPI(id) {
    return request({
        url: '/park/propertyfee/' + id,
        method: 'DELETE'
    })
}

//添加账单
export function addExpensesAPI(obj) {
    return request({
        url: '/park/propertyfee',
        method: 'post',
        data: obj
    })
}

//查询所有企业
export function enterpriseAPI() {
    return request({
        url: '/park/all/enterprise',
        method: 'get',
    })
}

//查询所有楼宇
export function buildingAPI() {
    return request({
        url: '/park/all/building',
        method: 'get',
    })
}

//预算金额
export function budgetAPI(obj) {
    return request({
        url: '/park/propertyfee/pre/payment',
        method: 'post',
        data: obj
    })
}

//查看账单详情
export function getPropertyfeeAPI(id) {
    return request({
        url: '/park/propertyfee/' + id,
        method: 'get'
    })
}


